#ifndef STATUSBAR_H
#define STATUSBAR_H

#include <QtGui/QWidget>
#include <QStatusBar>
#include <QLabel>
#include <QMovie>
#include "queue.h"

#define DEFAULT_TWIT_STATUS_ICON_SIZE    16
#define DEFAULT_TWIT_STATUSUP_ICON  ":images/twitter_up.png"
#define DEFAULT_TWIT_STATUSDOWN_ICON    ":images/twitter_down.png"
#define DEFAULT_TWIT_STATUSUPDATE_ICON  ":images/loading2.gif"

class StatusBar : public QStatusBar {
    Q_OBJECT
public:
    StatusBar(QWidget *parent = 0);
    virtual ~StatusBar();

    void setStatusText(QString &text);

public slots:
    void setStatusIcon(Queue::STATE state);

private:
    QLabel *statusIcon;
    QLabel *statusText;
    QMovie *icon;
};

#endif // STATUSBAR_H
